//
//  IDDPersistentCacheManager.h
//  ComJia
//
//  Created by Aslan on 17/02/2017.
//  Copyright © 2017 ComJia. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "IDDCacheManagerProtocol.h"

@interface IDDPersistentCacheManager : NSObject<IDDCacheManagerProtocol>

@property (nonatomic, readonly) NSString *rootCachePath;
@property (nonatomic, readonly) NSString *privateCachePath;
@property (nonatomic, readonly) NSString *publicCachePath;

- (instancetype)initWithRoot:(NSString *)root;
- (BOOL)canSupportObject:(id)object; /*virtual method */
- (BOOL)saveObject:(id)object atPath:(NSString *)path error:(IDDError **)error; /* virtual method */
- (id)restoreObjectAtPath:(NSString *)path error:(IDDError **)error; /* virtual method */

@end
